//
//  Feed.m
//  collection
//
//  Created by 靖 张 on 11/23/11.
//  Copyright (c) 2011 Tsinghua University. All rights reserved.
//

#import "Feed.h"

@implementation Feed

@synthesize feedID          = _feedID;
@synthesize feedType        = _feedType;
@synthesize userID          = _userID;
@synthesize nickname        = _nickname;
@synthesize avatarURL       = _avatarURL;
@synthesize avatar          = _avatar;
@synthesize text            = _text;
@synthesize publishTime     = _publishTime;
@synthesize tags            = _tags;
@synthesize picturesURL     = _picturesURL;
@synthesize pictures        = _pictures;
@synthesize favorNum        = _favorNum;
@synthesize commentNum      = _commentNum;
@synthesize forwardNum      = _forwardNum;
@synthesize originalFeed    = _originalFeed;

- (id)init {
    
    self = [super init];
    if (self) {
        self.favorNum = 0;
        self.commentNum = 0;
        self.forwardNum = 0;
    }
    
    return self;
}

- (void)dealloc {
    
    self.nickname       = nil;
    self.avatarURL      = nil;
    self.avatar         = nil;
    self.text           = nil;
    self.publishTime    = nil;
    self.tags           = nil;
    self.picturesURL    = nil;
    self.pictures       = nil;
    self.originalFeed   = nil;
    
    [super dealloc];
}

@end
